<template>
  <div>
    <h4>测试入口</h4>
    <el-form label-width="100px">
      <el-row>
        <el-col :span="6">
          <dialog-input
            :tableForm="tableForm"
            :tableColumn="tableColumn"
            :tableData="tableData"
            :contentRequest="contentRequest"
            :optionRequests="optionRequests"
            @contentRequest="contentRequest"
            @getRow="getRow"
          />
        </el-col>
        <el-col :span="12">
          <clould-id />
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script>
import DialogInput from "@/crm3.0part7-ppm/commons/dialog-input";
import ClouldId from "@/crm3.0part7-ppm/commons/clould-id";
import { mapState } from "vuex";
export default {
  name: "EmptyPage",
  components: {
    DialogInput,
    ClouldId,
  },
  data() {
    return {
      tableForm: {
        data: {
          provinceName: "",
          cityName: "",
          resourceName:''
        },
        items: [
          {
            field: "provinceName",
            title: "省份名称",
            itemRender: { name: "$input", options: [] },
          },
          {
            field: "cityName",
            title: "城市名称",
            itemRender: { name: "$input", props: { placeholder: "请输入" } },
          },
           {
            field: "resourceName",
            title: "资源池名称",
            itemRender: { name: "$input", props: { placeholder: "请输入" } },
          },
        ],
      },
      tableColumn:[
         {field: "STAFF_ID",slots: null,title: "省份",treeNode: null,width: null},
         {field: "STAFF_NAME",slots: null,title: "城市 ",treeNode: null,width: null},
         {field: "CERT_TYPE",slots: null,title: "资源池名称",treeNode: null,width: null},
         {field: "CERT_NUMBER",slots: null,title: "资源池编码",treeNode: null,width: null},
      ],
      tableData:[
        {STAFF_ID:1,STAFF_NAME:2,CERT_TYPE:3,CERT_NUMBER:4},
        {STAFF_ID:1,STAFF_NAME:2,CERT_TYPE:3,CERT_NUMBER:4},
      ],
      contentRequest:{ 
        url:`${process.env.VUE_APP_CTX_ORDER_QUERY}/queryProjectIds`, //云id
        defaultParams:{interFaceType:'ORDER',sqlId:'2021071504',paramStr:"productId:'';cityId:'';resourceName:'';cityName:'';provinceName:''"} //资源池的
        // defaultParams:{ACCOUNTID:'','PLATFORM':3,REGION_ID:this.user.regionCode},
      },
      optionRequests:[]
    };
  },
  computed:{
   ...mapState("user", ["user"]),
  },
  created(){

  },
  methods:{
    getRow(){

    }
  }
};
</script>

<style lang="scss" scoped>
</style>